﻿using System.Windows;

namespace JY.Wpf.Controls.ControlHelpers
{
    public class ItemsElement
    {
        public static readonly DependencyProperty HeaderProperty = DependencyProperty.RegisterAttached("Header", typeof(object), typeof(ItemsElement), new PropertyMetadata(default(object)));

        public static void SetHeader(DependencyObject element, object value)
        {
            element.SetValue(HeaderProperty, value);
        }

        public static object GetHeader(DependencyObject element)
        {
            return element.GetValue(ItemsElement.HeaderProperty);
        }
    }
}
